package com.xfdmao.user.controller;

import org.springframework.web.bind.annotation.*;

@RestController
public class HomeController {

    @RequestMapping(value = "",method = RequestMethod.GET)
    public String home(){
        return "FCat User";
    }

    @GetMapping(value = "hi")
    public String hi(String username){
        int i=0;
        if(i==0)throw  new RuntimeException("TEST Hystrix");
        return "FCat-user say: hi "+username;
    }

}
